home *** CD-ROM | disk | FTP | other *** search
/ Programming a Multiplayer FPS in DirectX / Programming a Multiplayer FPS in DirectX (Companion CD).iso / DirectX / dxsdk_oct2004.exe / dxsdk.exe / Utilities / MView / skin.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-09-27  |  483 b   |  28 lines

  1. #pragma once
  2. class CBone
  3. {
  4. public:
  5.     CBone* next;
  6.     char* boneName;
  7.     DWORD numWeights;
  8.     D3DXMATRIX offsetMat;
  9.     DWORD* vertIndices;
  10.     float* weights;
  11. };
  12.  
  13. typedef CBone *LPBONE;
  14.  
  15. LPBONE CreateBone(char* name, DWORD numWeights);
  16.  
  17. class CSkinMesh
  18. {
  19. public:
  20.     LPD3DXMESH m_pMesh;
  21.     LPBONE m_pBoneList;
  22.     DWORD* m_faceMatId;
  23.     float* m_vertWeight;
  24.  
  25.     void ProcessSkinData(LPDIRECT3DDEVICE9 pD3DDevice);
  26. };
  27. typedef CSkinMesh *LPSKINMESH;
  28.